<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<%
    //获取网页的前面那一串地址： http://127.0.0.1:8086/backend/
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>卡卡录像机后台系统</title>
		<link rel="icon" id="favicon" href="favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="<%=path%>/css/main.css" />
	</head>
	<body>
		
		<div id="header">		
			<div class="center">
				<div class="logo">
					<img src="<%=path%>/img/index.png"/>
					<p>卡卡录像机</p>
				</div>
				<ul class="menu">
					<li class="active">信息管理</li>					
				</ul>
				<div class="login">
					<a href="javascript:void(0);">退出</a>		
				</div>
			</div>
		</div>
		
	    <div id="container">
	    	<div class="panel">
	    		<div class="submenu">
	    			<ul>
	    				<li class="active"><a href="#">VIP管理</a></li>
	    				<li><a href="#">用户管理</a></li>
	    				<li><a href="#">帮助主题</a></li>
	    				<li><a href="#">帮助文章</a></li>
	    				<li><a href="#">产品发布</a></li>
	    			</ul>
	    		</div>
	    	</div>
	    	
	    	<div class="content">
	    		<div class="header">编辑VIP</div>
	    			    		
	    		
	    		<div class="info">	    	
	    				
	    			<form action=<s:if test="#oper!=null && #oper==1">"/backend/vip-update.action"</s:if>
	    			<s:if test="#oper!=null && #oper==2">"/backend/vip-add.action"</s:if> method="post">
	    				<input type="hidden" id="id" name="id" value="${vip.id}"/>
	    				<div class="formgroup">
	    					<label for="vip-name" class="formlable">名称:</label>
	    					<input class="formcontrol" type="text" id="name" name="name" value="${vip.name}"/>
	    				</div>
	    				<div class="formgroup">
	    					<label for="vip-reduce" class="formlable">节省:</label>
	    					<input class="formcontrol" type="text" id="reduce" name="reduce" value="${vip.reduce}"/>	    					
	    				</div>
	    				<div class="formgroup">
	    					<div class="submitwrapper">
	    						<input type="submit" class="submit" value="提交"/>	
	    					</div>
	    					    					
	    				</div>	    				
	    			</form>	    			
	    		</div>
	    	</div>
	    	
	    </div>	    
	</body>
</html>
